package com.mdd.admin.controller.system;

import com.mdd.admin.config.aop.Log;
import com.mdd.admin.service.system.ICouponReceiveService;
import com.mdd.admin.service.system.ISiginLogService;
import com.mdd.admin.validate.common.PageParam;
import com.mdd.admin.validate.system.CouponReceiveCancelParam;
import com.mdd.admin.vo.system.CouponReceiveListVo;
import com.mdd.admin.vo.system.SiginLogListVo;
import com.mdd.common.core.AjaxResult;
import com.mdd.common.core.PageResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 签到记录管理
 * @author panweiliang
 */
@RestController
@RequestMapping("api/system/sigin_log")
public class SiginLogController {

    @Resource
    ISiginLogService iSiginLogService;

    /**
     * 签到记录列表
     *
     * @author panweiliang
     * @param pageParam 分页参数
     * @param params 搜索参数
     * @return Object
     */
    @GetMapping("/list")
    public Object list(@Validated PageParam pageParam,
                       @RequestParam Map<String, String> params) {
        PageResult<SiginLogListVo> list = iSiginLogService.list(pageParam, params);
        return AjaxResult.success(list);
    }


}
